package com.woniuxy.mapper;

import com.woniuxy.entity.Video;
import com.woniuxy.mapper.provider.VideoMapperProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface VideoMapper {
    //动态sql注解
    //type 供应者类
    //method 该类中生成sql的方法

    @SelectProvider(type = VideoMapperProvider.class, method = "findVideoByDids")
    public List<Video> findVideoByDids(List<Integer> dids);

}
